<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Security-Policy" content="media-src 'self' file: data: blob: filesystem:; media-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'"/>
    <!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
    <meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'self'">
    <title>BiliBiliBox</title>
  </head>
  <body>
    <button onclick="liveClick('go-liveline')">B站直播保安室监控</button>
    <button onclick="liveClick('go-avbv')">AV\BV互转</button>
    <button onclick="liveClick('go-jsonnice')">JSON美化</button>
    <button onclick="liveClick('go-xmlnice')">XML美化</button>
  </body>
  <script>
    const { ipcRenderer } = require('electron')
    function liveClick(where) {
      ipcRenderer.invoke(where, null)
    }
  </script>
  <style>
    html,body{
      height: 100%;
      margin: 0;
      background-color:black;
    }
    button{
      margin: 0;
      width: 100%;
    }
  </style>
</html>
